<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>Document</title>
	<script type="text/javascript">
		window.onload=function (){
			var oa=document.getElementsByTagName("li");
			for(var i=0;i<oa.length;i++){
				oa[i].onclick=function (){
				 this.style.display="none";	
				//this.parentNode.style.display="none";
				}
				
			}
		}
	</script>
</head>
<body>
	<ul>
		<li>111111111<a href="#">隐藏</a></li>
		<li>222222222<a href="#">隐藏</a></li>
		<li>333333333<a href="#">隐藏</a></li>
		<li>444444444<a href="#">隐藏</a></li>
		<li>555555555<a href="#">隐藏</a></li>
	</ul>
</body>
</html>